@section('scripts')
<script type="text/javascript" src="{{ asset('js/jquery.charcounter.js')}}"></script>
<script type="text/javascript">
$(document).ready(function(){
	$("#title").charCounter(70,{
		container: '<small></small>'
	});

	$("#description").charCounter(160,{
		container: '<small></small>'
	});

	$("#keywords").charCounter(255,{
		container: '<small></small>'
	});
});
</script>
@stop

@section('content')
<div class="row">
  <div class="col-md-8">
      {{ Form::open(array('url' => 'admin/seo')) }}
  
      <legend>Editing SEO</legend>
      
      <div class="form-group">
        {{Form::label('title')}}  
        {{ Form::text('title', null ,array('class'=>'form-control', 'placeholder'=>'SEO Title'))}}
      </div>

      <div class="form-group">
        {{ Form::label('keywords')}}  
        {{ Form::text('keywords', null ,array('class'=>'form-control', 'placeholder'=>'SEO Keywords'))}}
      </div>
      
      <div class="form-group">
        {{ Form::label('description')}}  
        {{ Form::textarea('description', null ,array('class'=>'form-control', 'placeholder'=>'SEO Description','rows' => 4))}}
      </div>

      {{ Form::hidden('type', $type)}}
      {{ Form::hidden('id', $itemId)}}

      <div class="form-group">
        {{ Form::submit('Submit', array('class'=>'btn btn-default'))}}
      </div>

      {{ Form::close()}}
  </div>
</div>
@stop
